panel-raspberrypi-touchscreen: Fix NULL deref if probe order goes wrong.
authorEric Anholt <eric@anholt.net>
Thu, 13 Apr 2017 00:52:56 +0000 (17:52 -0700)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:53:29 +0000 (15:53 +0100)
commitaa63f5630aeabb029ded9109badd2d53f0150b21
tree34dac84fbe009cde9a1310b905933beb71943843
parent95bb8782b13df3b87dbe68e287d57f9ffe5651d3
panel-raspberrypi-touchscreen: Fix NULL deref if probe order goes wrong.

If the i2c driver hadn't pobed before the panel driver probes, then
the client would be NULL but we were looking for an ERR_PTR in the
error case.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c